home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8594 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  906 b 

  1. Path: news.mindlink.net!news
  2. From: mike_huwe@mindlink.bc.ca (Mike Huwe)
  3. Newsgroups: comp.lang.c
  4. Subject: *** NEED ADVICE : Shell out to DOS ***
  5. Date: 5 Mar 1996 09:38:08 GMT
  6. Organization: Your Organization
  7. Message-ID: <4hh220$bsv@fountain.mindlink.net>
  8. NNTP-Posting-Host: line090.nwm.mindlink.net
  9. Mime-Version: 1.0
  10. Content-Type: Text/Plain; charset=US-ASCII
  11. X-Newsreader: WinVN 0.99.6
  12.  
  13. I'm taking an introductory course in C programming. I have a question
  14. that has given me problems and I hope someone might be able to help
  15. me out. 
  16.  
  17. I have a menu program. When the user selects option 1, the program should
  18. shell out to dos and display the current version and then return back to
  19. the menu.
  20.  
  21. The code I used is: case '1':
  22.                     system("ver");
  23.                     break;
  24.  
  25. This did not work. Is there more code that I must add or is it a different
  26. command entirely? Thanks in advance.
  27.  
  28.  
  29. Mike 
  30.  
  31.